package study.config;


import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;



public class MyService {
    String name;
    int age;

    public void say(){
        System.out.println("hahaha myService");
        this.setAge(99);
        this.setName("老当益壮");
        System.out.println(this.getName());
        System.out.println(this.getAge());
    }


    @Override
    public String toString() {
        return "MyService{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
